# build stage
# FROM node:slim as build-stage
# WORKDIR /app
# COPY package.json ./
# RUN npm i -g pnpm
# RUN pnpm config set registry https://registry.npmmirror.com/
# RUN pnpm i
# COPY . .
# RUN pnpm run build

# production stage
# FROM nginx:latest as production-stage

# COPY --from=build-stage /app/build /usr/share/nginx/html
# COPY --from=build-stage /app/nginx.conf /etc/nginx/conf.d/default.conf

# EXPOSE 3006

# CMD ["nginx", "-g", "daemon off;"]

FROM nginx:latest

COPY ./build /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/conf.d/default.conf

EXPOSE 3006

CMD ["nginx", "-g", "daemon off;"]